package com.wtb.javatool.entity;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import javax.persistence.Column;
import java.io.Serializable;
import java.util.Date;

@Data
@ToString
@ApiModel(value = "PublicDatabase",description="公共数据库")
public class PublicDatabase implements Serializable {
    @ApiModelProperty(value = "学号")
    private String studentId;
    @ApiModelProperty(value = "公共数据库编号")
    private String databaseName;
    @ApiModelProperty(value = "申请目的")
    private String applyAim;
    @ApiModelProperty(value = "审批人编号(老师)")
    private String approverId;
    @ApiModelProperty(value = "授权人编号(管理员)")
    private String authorizerId;
    @ApiModelProperty(value = "审批状态")
    private int status;
    @ApiModelProperty(value = "申请创建时间")
    private Date createTime;
    public PublicDatabase() {

    }

    public PublicDatabase(String studentId, String databaseName,String applyAim, String approverId) {
        super();
        this.studentId = studentId;
        this.databaseName = databaseName;
        this.applyAim = applyAim;
        this.approverId = approverId;
        this.authorizerId = null;
        this.status = 0;
        this.createTime = new Date();
    }
}
